<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>联盟商圈</title>
		<link rel="stylesheet" href="__AGENT__/css/iconfont.css" />
		<link rel="stylesheet" href="__AGENT__/css/css.css" />
		<style>.empty{top: 125px;}</style>
	</head>

	<body>
		{include file="public/header" /}
		<div class="index_conbox">
			<div class="index_content clearfix">
				{include file="public/lefter" /}
				<div class="right">
					<div class="rigtop">
						<span class="title">联盟商圈</span>
					</div>
					<div class="indrig_con huodong_con">
						<div class="union_xuanxk">
							<div class="zizh_menubox">
								<!--选项卡标题开始-->
								<ul class="clearfix">
									<li id="two1"><a href="{:url('activet/union_circle1')}">已加入</a></li>
									<li class="active" id="two2" onclick=""><a href="{:url('activet/union_circle2')}">未加入</a></li>
								</ul>
							</div>
							<div class="zizh_conbox">
								
								<div class="zizh_con_2" id="con_two_2">
									<form id="my_form" action="{:url('agent/activet/union_circle2')}" method="post">
									<div class="chax_rowbox clearfix">
									        <div class="shxx_row chax_row clearfix">
									            <div class="left">联盟名称：</div>
									            <div class="right clearfix">
									                <input type="text" name="store_name" placeholder="请输入联盟名称" style="width: 200px;" class="chax_input" />
									          	 </div>
								      		  </div>
									        <button type="submit" class="htcxbtn">查询</button>
										</div>
									</form>
									<table class="zizh_table1">
										<thead>
											<tr>
												<th>联盟名称</th>
												<th>商圈名称</th>
												<th>联盟主联系方式</th>
												<th>客户量</th>
												<th>操作</th>
											</tr>
										</thead>
										<tbody id="tbody">
											{volist name="list" id="vo" empty="$empty"}
												<tr>
													<td>{$vo.name}</td>
													<td>{$vo.sq_name}</td>
													<td>{$vo.tel}</td>
													<td>{$vo.customer_volume}</td>
													<td>
														<a href="javascript:;" onclick='union_member("{:url("activet/union_member",["union_id"=>$vo.id])}")' class="green">成员列表</a>
														<a class="gray" href="javascript:;" onclick="union_join('{$vo.id}')">申请加入</a>
													</td>
												</tr>
												{/volist}
										</tbody>
									</table>
									<div class="fenye" style="display: block;">
										{$list->render()}
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		{include file="public/footer" /}
		
	</body>

</html>
<script>
	function union_member(url) {
		layer.open({
			type: 2,
			title: '联盟成员',
			shadeClose: true,
			shade: 0.8,
			area: ['680px', '550px'],
			content: url
		});
	}
	function yue_ad() {
		layer.open({
			type: 2,
			title: '广告购买',
			shadeClose: true,
			shade: 0.8,
			area: ['500px', '300px'],
			content: "{:url('index/yue_ad')}"
		});
	}
	function union_join(lid){
		var url='union_join?lid='+lid;
		layer.open({
		  type: 2,
		  title: '加入联盟商圈',
		  shadeClose: true,
		  shade: 0.8,
		  area: ['500px', '	200px'],
		  content:  [url]
		}); 
	}
</script>